Chris Pollett > Old Classes >
CS116a

( Print View )

Student Corner:
  [Grades Sec1]

  [Submit Sec1]

  [Email List Sec1]

  [
Lecture Notes]

Course Info:
  [Texts & Links]
  [Topics]
  [Grading]
  [HW Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]

Practice Exams:
  [Mid1]  [Mid2]  [Final]

                           












HW#1 --- last modified March 02 2019 21:07:58..

Solution set.

Due date: Sep 13

Files to be submitted:
  name.mp
  name.cpp

Purpose: The purpose of this homework is to experiment with a modern tool for 3D graphics as well as to implement some simple curve drawing algorithms in C++ using OpenGL.

Specification:

For the first part of this assignment I would like to whet your appetite for the different kinds of graphics primitives and effect we'll learn to implement this semester. Download Maya Personal Learning Edition. Then create a scene using Maya which consists of your whole name in 3D. Try to use as many of Maya's features as you can. Make it look cool-- it's your name after all. Submit this as name.mp .

For the second part of the homework I want you to gain experience with some of the algorithms we've learned in class. In C++ using OpenGL calls, create a function with prototype:

void polyLineBres(int x[], int y[], int len);

which draws the polyline consisting of points (x[0], y[0]), (x[1], y[1]), ... (x[len-1], y[len-1]) using Bresenham's line drawing algorithm. Then create a function with prototype:

void circleArcMidpoint(GLint xc, GLint yc, GLint r, GLfloat startTheta, GLfloat endTheta);

which draws a circular arc in OpenGL based on a circle centered at (xc, yc) of radius r where the starting angle of the arc is startTheta radians, and the ending angle of the arc is at endTheta radians. To recieve credit you need to modify the Midpoint Circle algorithm to implement this function. Finally, write a short program that uses to GLUT open a window and then draws using these two functions your whole name in this window in 2D followed by the English vowels: a,e,i,o,u.

Point Breakdown

Departmental coding guidelines for C++ followed 1pt
Maya scene of your name is as described 2pts
name.cpp compiles and opens a window using GLUT1pt
polyLineBres works as described2pts
circleArcMidpoint works as described 2pts
Your name as well as each English vowel is draw on the screen by your two functions 2pts
Total10pts